<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: D:/Projects/MiXiM/extsrc/mixim/src/modules/phy/DeciderUWBIREDSync.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00469.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">DeciderUWBIREDSync.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * DeciderUWBIREDSync.h</span>
<a name="l00003"></a>00003 <span class="comment"> * Author: Jerome Rousselot &lt;jerome.rousselot@csem.ch&gt;</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright: (C) 2008-2010 Centre Suisse d&#39;Electronique et Microtechnique (CSEM) SA</span>
<a name="l00005"></a>00005 <span class="comment"> *              Wireless Embedded Systems</span>
<a name="l00006"></a>00006 <span class="comment"> *              Jaquet-Droz 1, CH-2002 Neuchatel, Switzerland.</span>
<a name="l00007"></a>00007 <span class="comment"> */</span>
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef UWBIREDSYNC_H_</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define UWBIREDSYNC_H_</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;MiXiMDefs.h&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;Mapping.h&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;DeciderUWBIRED.h&quot;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 <span class="keyword">class </span><a class="code" href="a00175.html" title="Physical layer that models an Ultra Wideband Impulse Radio wireless communication system...">PhyLayerUWBIR</a>;
<a name="l00017"></a>00017 <span class="keyword">class </span><a class="code" href="a00192.html" title="The signal class stores the physical representation of the signal of an AirFrame.">Signal</a>;
<a name="l00018"></a>00018 
<a name="l00046"></a><a class="code" href="a00081.html">00046</a> <span class="keyword">class </span>MIXIM_API <a class="code" href="a00081.html" title="this Decider models a non-coherent energy-detection receiver that synchronizes on the first sync prea...">DeciderUWBIREDSync</a>: <span class="keyword">public</span> <a class="code" href="a00080.html" title="This class implements a model of an energy detection receiver that demodulates UWB-IR burst position ...">DeciderUWBIRED</a> {
<a name="l00047"></a>00047 <span class="keyword">public</span>:
<a name="l00048"></a>00048   <a class="code" href="a00081.html" title="this Decider models a non-coherent energy-detection receiver that synchronizes on the first sync prea...">DeciderUWBIREDSync</a>( <a class="code" href="a00079.html" title="This class is the interface for a Decider to the BasePhyLayer.">DeciderToPhyInterface</a>* phy
<a name="l00049"></a>00049                     , <span class="keywordtype">double</span>                 sensitivity
<a name="l00050"></a>00050                     , <span class="keywordtype">int</span>                    myIndex
<a name="l00051"></a>00051                     , <span class="keywordtype">bool</span>                   debug )
<a name="l00052"></a>00052     : <a class="code" href="a00080.html" title="This class implements a model of an energy detection receiver that demodulates UWB-IR burst position ...">DeciderUWBIRED</a>(phy, sensitivity, myIndex, debug)
<a name="l00053"></a>00053     , tmin()
<a name="l00054"></a>00054   {}
<a name="l00055"></a>00055 
<a name="l00064"></a>00064   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="a00080.html#a544bf3b2eecdf476feceed30bb6e4f72" title="Initialize the decider from XML map data.">initFromMap</a>(<span class="keyword">const</span> <a class="code" href="a00070.html#a7f3ee545f2ae8b0d8d1814c98917f5b6" title="Used at initialisation to pass the parameters to the AnalogueModel and Decider.">ParameterMap</a>&amp; params);
<a name="l00065"></a>00065 
<a name="l00066"></a>00066   <span class="keyword">virtual</span> ~<a class="code" href="a00081.html" title="this Decider models a non-coherent energy-detection receiver that synchronizes on the first sync prea...">DeciderUWBIREDSync</a>() {};
<a name="l00067"></a>00067 
<a name="l00068"></a>00068 <span class="keyword">protected</span>:
<a name="l00069"></a>00069   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> attemptSync(<span class="keyword">const</span> <a class="code" href="a00070.html#a8532046253d31801ffe4bc56b0d70850">airframe_ptr_t</a> frame);
<a name="l00070"></a>00070   <span class="keywordtype">bool</span> evaluateEnergy(<span class="keyword">const</span> <a class="code" href="a00070.html#a8532046253d31801ffe4bc56b0d70850">airframe_ptr_t</a> frame, <span class="keyword">const</span> <a class="code" href="a00070.html#a6baab300e0bec90320dfe956c2d15a57" title="Defines what an AirFrameVector shall be here.">AirFrameVector</a>&amp; syncVector) <span class="keyword">const</span>;
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <span class="keyword">private</span>:
<a name="l00073"></a>00073   simtime_t tmin;
<a name="l00074"></a>00074 };
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 <span class="preprocessor">#endif </span><span class="comment">/* UWBIREDSYNC_H_ */</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>DeciderUWBIREDSync.h</b>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:30 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
